package com.qf.service.shangpin_service;

import com.github.pagehelper.PageInfo;
import com.qf.bean.Commodity;

import java.util.List;

public interface CommService {

    PageInfo<Commodity> show(Integer index,Commodity commodity);

    Integer add(Commodity commodity,int[] ch);

    Commodity findByCommId(Integer commId);

    Integer update(Commodity commodity);

    PageInfo<Commodity> chuxiaoShow(Integer index, String commName,Integer brandId, Integer commTypeId, Integer status);

    Integer addCh(Integer commId, double cbPrice, String cname);


    List<Commodity> findByIds(int[] ids);
}
